package com.gzf.controller;


import com.gzf.pojo.User;
import com.gzf.service.UserService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author gzf
 * @since 2019-07-26
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;

    @PostMapping("/insert")
    public void insert(@RequestBody User user) {
        userService.save(user);
    }
}

